﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBA.Localization;

namespace EBA.Framework
{
    /// <summary>
    /// 服务未注册。
    /// </summary>
    [Serializable]
    public class ServiceUnregisteredException : Exception
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public ServiceUnregisteredException() { }
        /// <summary>
        /// 构造函数
        /// </summary>
        public ServiceUnregisteredException(Type serviceType) : base(string.Format("Service[{0}] has not been registered in current bundle context.".T(serviceType))) { }

        /// <summary>
        /// 构造函数
        /// </summary>
        public ServiceUnregisteredException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        /// 构造函数
        /// </summary>
        protected ServiceUnregisteredException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
